<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>Plantae: Evolutionary Ecology Database for Plants</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<%= stylesheet_link_tag 'screen', :media => 'screen' %>
	<%= javascript_include_tag :defaults %>
<!-- 	<%= engine_stylesheet "user" %>
	<%= engine_javascript "user" %> -->
</head>
<html>
<body>
    <div id="page">
    <hr />
    <%= render(:partial => "sidebar") %>
    <hr />
    <div id="header">
		<ul>
			<li><%= link_to 'Plantae', :action => 'index' -%></li>
			<li><%= link_to 'Browse', :action => 'list' %></li>
			<li><%= link_to 'Create', :action => 'create_plant' %></li>
			<li><%= link_to 'About',  :controller => 'wiki' -%></li>
			<li><%= link_to 'Code', "http://code.google.com/p/plantae/" -%></li>
		</ul>
		<form action="/herbarium/search" method="get">
			<input type="text" name="query" value="Search" size="30" />
		</form>
	</div>
	<hr />
	<div id="content">
		<%= image_tag("plantae_1.jpg") %>
		<%= image_tag("plantae_2.jpg") %>
		<%= image_tag("plantae_3.jpg") %>
		<%= image_tag("plantae_4.jpg") %>
		<%= image_tag("plantae_5.jpg") %>
    <% for name in [:notice, :warning, :message] %>
        <% if flash[name] %>
            <%= "<div id=\"#{name}\">#{flash[name]}</div>" %>
        <% end %>
    <% end %>
    <h1><%= @page_title %></h1>
	<%= @content_for_layout %>
    </div>
    <hr />
	<div id="footer">
			<p class="notice">This site is in progress, but any data you add will be saved.</p>
		<ul>
			<li>
				<%= mail_to "matthew.routley+plantae@gmail.com", "Contact", 
				:subject => "Plantae feedback", 
				:encode => "javascript" -%>
			</li>
			<li><%= link_to 'Suggestions', 'http://code.google.com/p/plantae/issues/entry' -%></li>
			<li>
				<% if user? %>
				Welcome <%= current_user.firstname -%> ~ Contributions: <%= current_user.plants_added + current_user.plants_modified -%> ~ <%= link_to 'logout', :controller => 'user', :action => 'logout' %>
				<% else %>
				<%= link_to 'Log in to contribute.', :controller => 'user', :action => 'login' %>
				<% end %>
			</li>
		</ul>
	</div>
	<hr />
	</div>
</body>
</html>